<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition>
	<h:panelGrid id="productThemeInputPanel" columns="1" style="width:100%">
		<p:tabView id="infoTabView">
			<p:tab title="Basic Info">
				<ui:include src="productThemeInfoInputPanel.xhtml"></ui:include>
			</p:tab>
			<p:tab title="Related Products">
				<ui:include src="productThemeProductInputPanel.xhtml"></ui:include>
			</p:tab>
		</p:tabView>
		<h:panelGrid columns="4" style="border:0px;width:100%">
			<p:commandButton icon="add" value="New" ajax="true"
				update=":listForm,:detailForm,:headerForm">
				<f:setPropertyActionListener value="#{productThemeModel.newObject}"
					target="#{productThemeController.modelCurrent}" />
			</p:commandButton>
			<p:commandButton value="Save" ajax="true" icon="save"
				update=":listForm,:detailForm,:headerForm"
				actionListener="#{productThemeController.saveCurrent}" />

			<p:commandButton value="Refresh" ajax="true"
				update=":listForm,:detailForm,:headerForm"
				actionListener="#{productThemeController.refreshCurrent}" />
			<p:commandButton value="delete" icon="delete" ajax="true" update=":dialogForm"
				 oncomplete="deleteDlg.show()"  />
		</h:panelGrid>
	</h:panelGrid>
</ui:composition>

</html>